package com.kmwiki.Server;
import java.io.IOException;
import javax.servlet.http.*;

import com.kmwiki.Utility.*;
import com.kmwiki.Utility.Net.*;

@SuppressWarnings("serial")
public class Gphoto extends HttpServlet {
	public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
		String RedirectUrl = "http://%1$s.tripexplore.net/photo.jsp";
		String servername = PrjInfo.getRandomServerName();
	    RedirectUrl = String.format(RedirectUrl, servername);
	    
		String QueryString = req.getQueryString();
		if (QueryString == null) QueryString = "id=108979762451884041474&num=20";
			
		String Url = RedirectUrl + "?" + QueryString;
		resp.sendRedirect(Url);
	}
}
